package at.kokoni.Koko_Ni.entities;

import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;

public class Image implements ApiData{
	private int id;
	@SerializedName("image")
	private String base64Data;
	@SerializedName("postid")
	private int postId;

	public Image() {
	}

	public static Image imageFromJson(String json) {
		Gson gson = new Gson();
		return gson.fromJson(json, Image.class);
	}

	public int getId() {
		return id;
	}

	public String getBase64Data() {
		return base64Data;
	}

	public int getPostId() {
		return postId;
	}

	public void setId(int id) {
		this.id = id;
	}
}
